package demo.spring.ioc.services;

import demo.spring.ioc.entity.MovieFinder;

/**
 * Constructor-based dependency injection
 * <p>
 * Created by lushun.chen on 2017/3/25.
 *
 * @author lushun.chen
 */
public class SimpleMovieLister {

    private MovieFinder movieFinder;

    // a constructor so that the Spring container can inject a MovieFinder
    public SimpleMovieLister(MovieFinder movieFinder) {
        this.movieFinder = movieFinder;
    }

    public MovieFinder getMovieFinder() {
        return movieFinder;
    }
}
